﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Member.master" AutoEventWireup="true"
    CodeFile="compose-message.aspx.cs" Inherits="Member_compose_message" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/Controls/wucMailBoxMenu.ascx" TagName="MailBoxMenu" TagPrefix="wuc" %>
<%@ Register Assembly="Jalal.Library" TagPrefix="ucc" Namespace="Jalal.Library.Web.Control" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script src="../Javascripts/Common/ApplicationCommon.js" type="text/javascript"></script>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MiddleContent" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
   
    </asp:ScriptManager>
    <table border="0" width="100%">
        <tr>
            <td>
                <table width="90%" cellspacing="10" border="0">
                    <tr>
                        <td colspan="2" align="center">
                            <ucc:ResponseMessage runat="server" ID="uccResponse"></ucc:ResponseMessage>
                            <asp:ValidationSummary ID="valSummComposeMessage" CssClass="ErrorSummary" runat="server"
                                ValidationGroup="valgrpComposeMessage" ShowMessageBox="false" ShowSummary="true"
                                HeaderText="You may not send a message without any text." />
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="top" class="large-label">
                            Friend Name
                        </td>
                        <td align="left" valign="top">
                            <asp:TextBox ID="txtFriendName" runat="server" 
                            Width="350px"
                            Text="Type the name of a friend" 
                             onclick="clearText(this, 'Type the name of a friend', '#000000')"
                            onblur="resetText(this, 'Type the name of a friend', '#000000')"
                            ></asp:TextBox>
                                                        <ajaxToolkit:AutoCompleteExtender 
    runat="server" 
    ID="AutoCompleteFriendSearch" 
    TargetControlID="txtFriendName"
    ServicePath="~/Service/Sugestions.asmx"
    ServiceMethod="GetFriendsList"     
    MinimumPrefixLength="1" 
    CompletionInterval="300"
    EnableCaching="true"
    CompletionSetCount="20"   
    DelimiterCharacters=";, :"
    ShowOnlyCurrentWordInCompletionListItem="true" UseContextKey="true">       
</ajaxToolkit:AutoCompleteExtender>

                          
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="top" class="large-label">
                            Subject
                        </td>
                        <td align="left" valign="top">
                            <asp:TextBox ID="txtSubject" runat="server" Width="350px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvtxtSubject" ControlToValidate="txtSubject" Display="None"
                                ValidationGroup="valgrpComposeMessage" runat="server"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="top" class="large-label">
                            Mail Content
                        </td>
                        <td align="left" valign="top">
                            <asp:TextBox ID="txtBody" runat="server" TextMode="MultiLine" Width="350px" Rows="8"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvtxtBody" ControlToValidate="txtBody" Display="None"
                                ValidationGroup="valgrpComposeMessage" runat="server"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="top" class="large-label">
                            Send Email
                        </td>
                        <td align="left" valign="top">
                            <asp:CheckBox ID="chkSendMail" runat="server" />&nbsp;<font style="color: #AFFFFD;">[Note:If
                                you choose this option a copy of this composed message will be send to email account
                                of your friend]</font>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="top">
                        </td>
                        <td align="left" valign="top">
                            <ucc:ThemeImageButton ID="tibSendMail" runat="server" ImageUrl="send.jpg" ValidationGroup="valgrpComposeMessage"
                                OnClick="tibSendMail_Click" />
                        </td>
                    </tr>
                </table>
            </td>
            <td style="width: 200px;" valign="top">
                <wuc:MailBoxMenu ID="MailBoxMenu1" runat="server" />
            </td>
        </tr>
    </table>
    <div style="visibility: hidden;">
        <asp:Button ID="btnOkPopupHidden" runat="server" Text="Button" />
    </div>
   
</asp:Content>
